// 渐变
.isText(@isText) when (@isText){
  -webkit-background-clip: text;
  -webkit-text-fill-color:transparent;
}
.gradient(@gradientColor, @baseColor, @isText) {
  color: @baseColor;
  background-image: @gradientColor;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  .isText(@isText);
}

// 文字省略
.ellipsis (@clamp) when (@clamp > 0) {
  display: -webkit-box;
  -webkit-line-clamp: @clamp;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}